package com.football.springboot.mapper;

import com.football.springboot.entity.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李越
 * @since 2023-02-18
 */
public interface TeamMapper extends BaseMapper<Team> {

    //通过球队id查找该球队的信息
    List<Team> findLeagueByTeamId(int teamId);

    //通过球队id查询该球队参加的联赛
    List<League> findLeaguesByTeamId(int teamId);

    //编辑球队能力
    Integer modifyTeamAbility(TeamAbility teamAbility);

    //查看球队能力值
    TeamAbility getTeamAbility(int teamId);

    //根据球队id查询该球队阵容（球员信息）
    List<Player> findPlayersByTeamId(int teamId);





}
